<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>层叠顺序研究</title>
    <style>
        /* div的背景  覆盖 p的背景  (div浮动  >  p 块级)
        
        p的文字覆盖在div上
         */
        div {
            float:left;
            color:red;
            background-color: goldenrod;
        }

        p {
            text-indent:-50px;
            background-color: green;
        }
    </style>
</head>

<body>
    <div>珠峰培训珠峰培训珠峰培训珠峰111</div>
    <p>珠峰培训珠峰培训珠峰培训珠峰培222</p>

</body>

</html>